SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
-- =============================================
-- Author:		Jonas
-- Create date: 22-01-2013
-- Description:	Retorna o flyer com o id do evento selecionado 
-- =============================================
CREATE PROCEDURE ext.procurarFlyer_porIdEvento @id as int
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

	SELECT f.id_evento,
		   f.flyer_ole as Flyer
	FROM ext.flyer f
	where f.id_evento = @id  
END
GO
